import request from '@/utils/request/index.js'
export default {
	/**
	 *  查询粉丝
	 * @param {Object} businessId
	 * @param {Object} userId
	 * @param {Object} page
	 * @param {Object} limit
	 */
	searchMyFan(businessId,userId,page,limit){
		return request.request({
			url: '/h5/nocyxcollect/searchMyFan',
			method: 'post',
			data:{
				businessId: businessId,
				userId: userId,
				page: page,
				limit: limit
			}
		})
	},
	/**
	 * 关注
	 * @param {Object} userId
	 */
	attention(userId){
		return request.request({
			url: '/h5/noccloudhome/shoucang',
			method: 'post',
			data:{
				userId: userId,
				shoucangFlag: true,
			}
		})
	},
	
	/** 取消收藏
	 * @param {Object} userId
	 * @param {Object} businessId
	 * @param {Object} type
	 */
	cancelCollect(userId, businessId, type){
		return request.request({
			url: '/h5/nocyxcollect/cancelCollection',
			method: 'post',
			data: {
				userId: userId,
				businessId: businessId,
				type: type,
			}
		})
	},
	
	
	
	
}